package com.spark.incoicings.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spark.invoicings.entity.OutboundDetail;
import com.spark.invoicings.utils.Result;

import java.util.List;
import java.util.Map;

public interface OutboundDetailService extends IService<OutboundDetail> {

    /**
     * 更新 出库单明细
     * @param outboundDetail
     * @return
     */
    Result updateOutboundDetail(OutboundDetail outboundDetail);

    /**
     * 保存出库单明细
     * @param outboundDetail
     * @return
     */
    Result addOutboundDetail(OutboundDetail outboundDetail);

    /**
     * 根据id获取出库单明细
     * @param id
     * @return
     */
    OutboundDetail selectOutboundDetailById(Integer id);

    /**
     * 查询所有出库单明细
     * @param map
     * @return
     */
    List<OutboundDetail> selectOutboundDetailAll(Map<String, Object> map);

}
